package com.bryandismas.pcsx.gui;

import com.bryandismas.pcsx.PcsxAndroid;
import com.bryandismas.pcsx.R;

import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class TempGUI implements OnClickListener
{
	PcsxAndroid context;
	
	Button loadButton;
	
	public TempGUI(PcsxAndroid context)
	{
		this.context = context;
		loadButton = (Button)context.findViewById(R.id.LoadButton);
		loadButton.setOnClickListener(this);
	}
	
	@Override
	public void onClick(View v)
	{
		if (v == loadButton)
		{
			// show dialog to select iso..
			Intent intent = new Intent("pcsx.filechooser.PICK");
			intent.putExtra("Title", "Pcsx Android - Choose Game");
			intent.putExtra("DefaultDirectory", "/sdcard");
			context.startActivityForResult(intent, PcsxAndroid.REQUEST_ISO);
		}
	}
}
